﻿@model LayuiMvc.DataModel.Identity.UserMsgModel

<div class="layui-container fly-marginTop">
    <div class="fly-panel fly-panel-user">

        <!--Tab选项卡-->
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title">
                <li>
                    <a href="@Url.Action("UserSet")">我的资料</a>
                </li>
                <li>
                    <a href="@Url.Action("UpdateHeadImg")">头像</a>
                </li>
                <li class="layui-this">密码</li>
            </ul>
            <div class="layui-tab-content">
                <!--选项卡内容-->
                <div class="layui-tab-item layui-show">
                    @using (Ajax.BeginForm("UpdatePassword", "Account", new AjaxOptions()
                    {
                        OnBegin="onBegin",
                        OnFailure="onFailure",
                        OnSuccess="onSuccess",
                        OnComplete="onUpdatePasswordComplete"
                    }))
                    {
                        <div class="layui-form layui-form-pane">
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_OldPassword">原密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="OldPassword" class="layui-input" id="txt_OldPassword" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_NewPassword">新密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="NewPassword" class="layui-input" id="txt_NewPassword" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" for="txt_ConfirmPassword">确认密码</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="ConfirmPassword" class="layui-input" id="txt_ConfirmPassword" autocomplete="off" lay-verify="required" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" lay-submit>确认修改</button>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.cache.module={
        moduleName: 'account',
        pageName:'updatePassword'
    }
</script>